﻿using System.Windows;
using System.Windows.Controls;

using C1.Phone.Tile;

namespace ControlExplorer.Controls.Tile
{
    public partial class ContentSourceSample : UserControl
    {
        public ContentSourceSample()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(OnLoaded);
        }

        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            LoadContent();
        }

        private void LoadContent()
        {
            foreach (C1Tile tile in tilePanel.Children)
            {
                FlickrPhoto.Load((string)tile.Header, tile);
            }
        }

    }

}
